@if(session()->has('data'))
<style>
    /*自定义样式*/
    .custom-alert{
        position: fixed;
        top: 25px;
        width: 300px;
        right: 30px;
        z-index: 999;
    }
    /*自定义样式 end*/
</style>
<div class="alert alert-{{session('data')['class']}} show custom-alert">
    {{ session('data')['msg'] }}
    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
        <span aria-hidden="true">&times;</span>
    </button>
</div>
<script src="/static/admin/bootstrap/js/core/jquery.3.2.1.min.js"></script>
<script>
    setTimeout(function () {
        $("button.close").trigger("click");
    },3000)
</script>
@endif
